package ru.aslanov.schedule.utils;

import ru.aslanov.schedule.model.Schedule;

import java.util.Locale;
import java.util.TimeZone;

/**
 * Created by IntelliJ IDEA.
 * Created: Jul 7, 2010 11:03:54 AM
 *
 * @author Sergey Aslanov
 */
public class ScheduleUtil {
    public static String getDefaultCity(Schedule schedule) {
        return schedule.getCity();
    }

    public static int getDefaultTimezoneOffset() {
        return getDefaultTimezone().getOffset(System.currentTimeMillis()) / 1000 / 60;
    }

    public static TimeZone getDefaultTimezone() {
        return TimeZone.getTimeZone("Europe/Moscow");
    }

    public static Locale getDefaultLocale() {
        return new Locale("ru", "RU");
    }
}
